<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>西安曲江城墙2010新春灯会－灯谜协会</title>
<style type="text/css">
<!--
body {
	background-image: url(images/index_bg.jpg);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE18 {
	color: #FF0000;
	font-weight: bold;
}
.STYLE9 {	color: #FFFF00;
	font-weight: bold;
}
-->
</style>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript">
function showPromot(){
	var value = $("#querytype").val();
	var keyword = $("#keyword").val();
	if(keyword==null ||  keyword==""  || keyword=="请输入真实姓名" || keyword=="请输入身份证号"){
		if(value==-1 || value==1){
			$("#keyword").val("请输入真实姓名");
		}else{
			$("#keyword").val("请输入身份证号");
		}
	}
}
$(function(){
	showPromot();
});
</script>
</head>

<body>
<table width="966" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top" background="images/index_middle.jpg" bgcolor="#f6b518"><table width="960" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="../images/index_banner_t1.jpg" width="960" height="64" border="0" usemap="#Map" /></td>
      </tr>
    </table>
    <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="306" valign="top" background="images/index_banner_t2.jpg"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','306','src','images/88','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent','movie','images/88' ); //end AC code
        </script>
          <noscript>
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="500" height="306">
            <param name="movie" value="images/88.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <embed src="images/88.swf" width="500" height="306" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
          </object>
          </noscript>
          </td>
      </tr>
    </table>
      <table width="960" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/index_banner_t3.jpg" width="960" height="38" border="0" usemap="#Map2" /></td>
        </tr>
      </table>
      <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top" background="images/index_middle.jpg"><!--<table width="98%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><marquee direction="left" scrollamount="4.3" height="30" onmouseover="this.stop()" onmouseout="this.start();">
                <span class="STYLE7">[ 活动公告 ] </span>　<a href="new2010220.html" target="_blank" class="link2">&#8226; 多图详解：灯会是怎样“炼”成的？——探班城墙元宵灯会制作现场</a>
              </marquee></td>
            </tr>
          </table>--></td>
        </tr>
      </table>
      	<form action="tickets_list.php" method="get"> 
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="40%" height="40" align="right"><span class="STYLE5 STYLE12">
            &nbsp;
			<select name="querytype" id="querytype" onchange="showPromot();">
				
				<option value="1" <?php if($querytype==1){?>SELECTED<?php }?>>输入真实姓名</option>
				<option value="2" <?php if($querytype==2){?>SELECTED<?php }?>>输入身份证号</option>
			</select>
			<input name="keyword" type="text" class="STYLE2" id="keyword" value="<?php if($keyword){ echo $keyword;}?>" onclick="this.value='';" />
			<input type="submit" name="button" id="button" value="查找" />
          </span>

		  </td>
          <td width="51%" align="right"> <marquee direction="left" scrollamount="3" onmouseover="this.stop();" onmouseout="this.start();">
		  <span class="STYLE8">今天已猜中 <strong class="STYLE9"><?php echo $awardNum;?></strong> 道灯谜　<span class="STYLE13">
		  <?php foreach($award as $array){
		  ?>
		  &#8226; 恭喜<?php echo $array['identity'];?>获得赢取门票的机会
		  <?php
			} 
		  ?>
		  </span> </span>
		  </marquee></td>
        </tr>
      </table>
	  </form>
      <br />
      <table width="960" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="images/index_middle.jpg"><h2><span class="STYLE9">竞猜成功名单</span></h2></td>
        </tr>
      </table>

	  <?php 
		  if($rs){
	  ?>
      <table width="600" border="0" cellpadding="2" cellspacing="2" bgcolor="#CCCCCC">
        <tr>
          <td width="100" height="40" align="center" valign="middle" bgcolor="#C62014" class="STYLE8"><strong class="STYLE9">姓 名</strong></td>
          <td height="40" align="center" valign="middle" bgcolor="#C62014" class="STYLE8"><strong class="STYLE9">身份证号码</strong></td>
          <td width="100" align="center" valign="middle" bgcolor="#C62014" class="STYLE8"><strong class="STYLE9">猜中时间</strong></td>
        </tr>
           <?php 
		foreach($rs as $array){
	  ?>

		<tr>
          <td width="100" height="40" align="center" valign="middle" bgcolor="#C62014"><span class="STYLE8"><?php echo $array['username'];?></span></td>
          <td height="40" align="center" valign="middle" bgcolor="#C62014"><?php echo $array['identity'];?></td>
		  <!--<?php 
			if($array['ifsend']){
		  ?>
          <td align="center" valign="middle" bgcolor="#C62014" class="STYLE18">已领取</td>
		  <?php
	        }else{
		  ?>
		  <td align="center" valign="middle" bgcolor="#C62014" class="STYLE7">未领取</td>
		  <?php }?>
		  -->
		  <td align="center" valign="middle" bgcolor="#C62014" class="STYLE8"><?php echo date("Y-m-d H:i:s",$array['answertime']);?></td>
        </tr>
       <?php
	   }
	   ?>		<tfoot>
			<tr><td bgcolor="#C62014" colspan='3'><span class="page"><?php echo $pages;?></span>
			</td>
			</tr>
		</tfoot>
      </table>
  <?php
	  }else{
	  ?>
		<table width="600" border="0" cellpadding="4" cellspacing="4" bgcolor="#CCCCCC">
        <tr>
          <td  height="40" align="center" valign="middle" bgcolor="#C62014" class="STYLE8">对不起，没有找到 
		  <?php 
		  if($username){
		  ?>
		  真实姓名为：<?php echo $username;?>
		  <?php
	      }
		  ?>

		  <?php
		  if($identity){
		  ?>
		  身份证号为：<?php echo $identity;?>
		  <?php
		  }
		  ?>
		    中奖纪录
		  </td>
        </tr>
		</table>
		<?php
	  }
	  ?>
      <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="images/index_bottom.jpg" width="960" height="340" /></td>
        </tr>
    </table></td>
  </tr>
</table>

<map name="Map2" id="Map2"><area shape="rect" coords="279,2,367,22" href="guessrule.html" />
<area shape="rect" coords="389,4,468,19" href="guessmethod.html" />
<area shape="rect" coords="488,5,573,22" href="tickets_list.php" />
<area shape="rect" coords="595,6,676,20" href="guessteam.html" />
</map>

<?php
include template('footer');
?>